import datetime
from applications.extensions import db


class Settings_web(db.Model):
    __tablename__ = 'admin_setings_web'

    id = db.Column(db.Integer, primary_key=True)  # 自动生成 id 主键
    key_name = db.Column(db.String(50), unique=True, nullable=False, comment='key名称')
    value_name = db.Column(db.Text, comment='key值', default="")  # 根据实际需要调整数据类型
    remark = db.Column(db.String(255), comment='备注')
    enable = db.Column(db.Integer, default=0, comment='可修改')


    # id = db.Column(db.Integer, primary_key=True, autoincrement=True, comment='ID')
    # sitename = db.Column(db.String(50), comment='网站名称')

    # icpbeian = db.Column(db.String(50), comment='ICP备案号')
    # icon_href = db.Column(db.String(255), comment='图标', default="/static/system/admin/images/logo.png")
    # logo_href = db.Column(db.String(255), comment='标志LOGO', default="/static/system/admin/images/logo.png")
    # remark = db.Column(db.String(255), comment='备注')
    
    # create_at = db.Column(db.DateTime, default=datetime.datetime.now, comment='创建时间')
    # update_at = db.Column(db.DateTime, default=datetime.datetime.now, onupdate=datetime.datetime.now, comment='创建时间')


